FROM openjdk:8-jdk-alpine
VOLUME /tmp
VOLUME /log
EXPOSE 11111 ##暴露端口
ADD target/up-app-api-2.0.jar up-api.jar
ENV JAVA_OPTS="-Dserver.port=11111"
ENTRYPOINT exec java $JAVA_OPTS -jar /up-api.jar